﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace System.Models
{
    public class BaseEntity
    {
        /// <summary>
        /// 编号
        /// </summary>
        [Required]
        public int Id { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Required]
        public DateTime CreateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 伪删除
        /// </summary>
        [Required]
        public bool IsRemoved { get; set; } = false;
        /// <summary>
        /// 备注
        /// </summary>
        [Column(TypeName = "varchar"), StringLength(255)]
        public string Remark { get; set; }
    }
}
